
package com.example.calendarapp;

/**
 * Data holder class for events each property has getter and setter
 * @author nathan
 *
 */


public class Event {
	
	private String name;
	private String desc;
	private String date;
	private int hourS;
	private int hourE;
	private int id;
	private int cat;
	private int catPos;
	private int repeatDay = -1;
	private int color;
	
	
	public Event()
	{}


	
	/**
	 * Constructor, sets name and desc and date
	 * @param n
	 * @param d
	 * @param da
	 */
	
	public Event(String n, String d, String da)
	{
		this.name = n;
		this.desc = d;
		this.date = da;
	}
	
	public String getName()
	{
		return name;
	}
	
	public void setName(String n)
	{
		this.name = n;
	}
	
	public String getDesc()
	{
		return desc;
	}
	
	public void setDesc(String d)
	{
		this.desc = d;
	}
	
	public String getDate()
	{
		return date;
	}
	
	public void setDate(String s)
	{
		this.date = s;
	}
	
	@Override
	public String toString()
	{
		return this.name;
	}

	public int getHourS() {
		return hourS;
	}

	public void setHourS(int hourS) {
		this.hourS = hourS;
	}

	public int getHourE() {
		return hourE;
	}

	public void setHourE(int hourE) {
		this.hourE = hourE;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getCat() {
		return cat;
	}

	public void setCat(int cat) {
		this.cat = cat;
	}

	public int getRepeatDay() {
		return repeatDay;
	}

	public void setRepeatDay(int repeatDay) {
		this.repeatDay = repeatDay;
	}

	public int getColor() {
		return color;
	}

	public void setColor(int color) {
		this.color = color;
	}

	public int getCatPos() {
		return catPos;
	}

	public void setCatPos(int catPos) {
		this.catPos = catPos;
	}

}
